package personal.util;

import java.util.LinkedHashMap;

public class Map2D<K1, K2, V> extends LinkedHashMap<Pair<K1, K2>, V> {

    public V get(K1 k1, K2 k2) {
        return this.get(new Pair<>(k1, k2));
    }

    public V putIfAbsent(K1 k1, K2 k2, V v) {
        return this.putIfAbsent(new Pair<>(k1, k2), v);
    }

    public V put(K1 k1, K2 k2, V v) {
        return this.put(new Pair<>(k1, k2), v);
    }

}
